public class Text8 {
    public static void main(String[] args) {
          int a =3;
          int b = 4;
        System.out.println(max(a,b));
          double c = 1.2;
          double d = 2.2;
          double e = 1.8;
        System.out.println(max(c, d, e));
    }
    public static int max(int a,int b){
        return a > b ? a : b;
    }
    public static  double max(double a,double b,double c){
        double max = a;
        if( b > max){
            max = b;
        }
        if(c > max){
            max = c;
        }
        return  max;
    }
}
